/**
 * 
 */
package org.jftstool.config;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Juan Angel
 *
 */
public class DocumentConfig {
	private boolean useDefaultField = false;
	private FieldConfig defaultField = null;
	private String luceneFieldClass = null;
	private String documentFormaterClass = null;
	private List<FieldConfig> validFields = null;
	
	
	public DocumentConfig(){
		useDefaultField = false;
		defaultField = new FieldConfig();
		luceneFieldClass = "";		
		documentFormaterClass = ""; 
		validFields = new ArrayList<FieldConfig>();
	}


	public DocumentConfig(boolean useDefaultField, FieldConfig defaultField,
			String luceneFieldClass, String documentFormaterClass,
			List<FieldConfig> validFields) {
		super();
		this.useDefaultField = useDefaultField;
		this.defaultField = defaultField;
		this.luceneFieldClass = luceneFieldClass;
		this.documentFormaterClass = documentFormaterClass;
		this.validFields = validFields;
	}


	public boolean getUseDefaultField() {
		return useDefaultField;
	}


	public void setUseDefaultField(boolean useDefaultField) {
		this.useDefaultField = useDefaultField;
	}


	public FieldConfig getDefaultField() {
		return defaultField;
	}


	public void setDefaultField(FieldConfig defaultField) {
		this.defaultField = defaultField;
	}


	public String getLuceneFieldClass() {
		return luceneFieldClass;
	}


	public void setLuceneFieldClass(String luceneFieldClass) {
		this.luceneFieldClass = luceneFieldClass;
	}


	public String getDocumentFormaterClass() {
		return documentFormaterClass;
	}


	public void setDocumentFormaterClass(String documentFormaterClass) {
		this.documentFormaterClass = documentFormaterClass;
	}


	public List<FieldConfig> getValidFields() {
		return validFields;
	}


	public void setValidFields(List<FieldConfig> validFields) {
		this.validFields = validFields;
	}
	



}